package com.rsk.dao.curriculum;


import java.io.Serializable;
import java.util.List;
import java.util.Map;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import com.rsk.entity.curriculum.RskCourseEvaluate;



@Repository
public interface RskCourseEvaluateRepository extends JpaRepository<RskCourseEvaluate, Long>,JpaSpecificationExecutor<RskCourseEvaluate>,Serializable {
	
	@Modifying
	@Query(value = "update rsk_course_evaluate set is_del = 1, operator_user =?2, operator_time = NOW() where id =?1", nativeQuery = true)
	public int delRskCourseEvaluateRepository(Long id, Long operatorUser);
	
	@Modifying
	@Query(value = "update rsk_course_evaluate set comment_status =?2, operator_user =?3, operator_time = NOW() where id =?1", nativeQuery = true)
	public int updateRskCourseEvaluateStatus(Long id, Integer commentStatus, Long operatorUser);
	
	@Modifying
	@Query(value = "update rsk_course_evaluate set is_top =?2, operator_user =?3, operator_time = NOW() where id =?1", nativeQuery = true)
	public int updateRskCourseEvaluateTop(Long id, Integer isTop, Long operatorUser);
	
	
}
 